package com.ssm.gbq.dao;

import com.ssm.gbq.model.Flowers;
import java.util.List;

public interface FlowersDao {
    /**
     * 分页查询
     * @param flowers
     * @param currentPage
     * @param pageSize
     */
    List<Flowers> showFlowersByPage(Flowers flowers, int currentPage, int pageSize)throws Exception;

    /**
     * 查询所有
     */
    List<Flowers> showFlowersTable();
    /**
     * 通过id查询
     * @param id
     */
    Flowers getFlowersById(Integer id)throws Exception;

    /**
     * 修改
     * @param flowers
     */
    int updateFlower(Flowers flowers)throws Exception;

    /**
     * 添加
     * @param flowers
     */
    int addFlower(Flowers flowers)throws Exception;

    /**
     * 根据id删除
     * @param id
     */
    int delFlower(Integer id)throws Exception;

    /**
     * 查询数据条数
     * @param flowers
     */
    int getFlowersCount(Flowers flowers);

    /**
     * 批量删除
     */
    int deleteFlowers(List<Integer> ids);

}
